package com.hue.client;

import com.hue.client.impl.VodFeignServiceImpl;
import com.hue.entity.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import java.util.List;

@Component
@FeignClient(value = "service-vod",fallback = VodFeignServiceImpl.class)        //调用vod服务
public interface VodFeignService {
    //根据视频id删除视频
    @GetMapping("/vod/delete/{videoId}")
    public R delete(@PathVariable("videoId") String videoId);

    //删除多个视频
    @PostMapping("/vod/deletes")
    public R deletes(@RequestBody List<String> videoIds);
}
